type net/http.persistConn
49 uses
net/http (current package)
clientconn.go#L395: pconn *persistConn
transport.go#L101: idleConn map[connectMethodKey][]*persistConn // most recently used at end
transport.go#L844: func (pc *persistConn) shouldRetryRequest(req *Request, err error) bool {
transport.go#L1111: func (t *Transport) putOrCloseIdleConn(pconn *persistConn) {
transport.go#L1129: func (t *Transport) tryPutIdleConn(pconn *persistConn) error {
transport.go#L1205: t.idleConn = make(map[connectMethodKey][]*persistConn)
transport.go#L1328: func (t *Transport) removeIdleConn(pconn *persistConn) bool {
transport.go#L1338: func (t *Transport) removeIdleConnLocked(pconn *persistConn) bool {
transport.go#L1414: pc *persistConn
transport.go#L1436: func (w *wantConn) tryDeliver(pc *persistConn, err error, idleAt time.Time) bool {
transport.go#L1459: var pc *persistConn
transport.go#L1583: func (t *Transport) getConn(treq *transportRequest, cm connectMethod) (_ *persistConn, err error) {
transport.go#L1781: func (pconn *persistConn) addTLS(ctx context.Context, name string, trace *httptrace.ClientTrace) error {
transport.go#L1836: func (t *Transport) dialConn(ctx context.Context, cm connectMethod, isClientConn bool, internalStateHook func()) (pconn *persistConn, err error) {
transport.go#L1852: return &persistConn{
transport.go#L1859: pconn = &persistConn{
transport.go#L1883: return &persistConn{t: t, cacheKey: pconn.cacheKey, alt: rt}, nil
transport.go#L2065: return &persistConn{t: t, cacheKey: pconn.cacheKey, alt: cc, isClientConn: true}, nil
transport.go#L2073: return &persistConn{t: t, cacheKey: pconn.cacheKey, alt: rt}, nil
transport.go#L2092: return &persistConn{t: t, cacheKey: pconn.cacheKey, alt: alt, isClientConn: true}, nil
transport.go#L2105: return &persistConn{t: t, cacheKey: pconn.cacheKey, alt: alt}, nil
transport.go#L2116: return &persistConn{t: t, cacheKey: pconn.cacheKey, alt: alt}, nil
transport.go#L2135: pc *persistConn
transport.go#L2241: type persistConn struct {
transport.go#L2289: func (pc *persistConn) maxHeaderResponseSize() int64 {
transport.go#L2293: func (pc *persistConn) Read(p []byte) (n int, err error) {
transport.go#L2309: func (pc *persistConn) isBroken() bool {
transport.go#L2318: func (pc *persistConn) canceled() error {
transport.go#L2325: func (pc *persistConn) isReused() bool {
transport.go#L2332: func (pc *persistConn) cancelRequest(err error) {
transport.go#L2342: func (pc *persistConn) closeConnIfStillIdle() {
transport.go#L2362: func (pc *persistConn) mapRoundTripError(req *transportRequest, startBytesWritten int64, err error) error {
transport.go#L2454: func (pc *persistConn) readLoop() {
transport.go#L2653: func (pc *persistConn) readLoopPeekFailLocked(peekErr error) {
transport.go#L2690: func (pc *persistConn) readResponse(rc requestAndChan, trace *httptrace.ClientTrace) (resp *Response, err error) {
transport.go#L2762: func (pc *persistConn) waitForContinue(continueCh <-chan struct{}) func() bool {
transport.go#L2830: func (pc *persistConn) writeLoop() {
transport.go#L2878: func (pc *persistConn) wroteRequest() bool {
transport.go#L2983: func (pc *persistConn) waitForAvailability(ctx context.Context) error {
transport.go#L2994: func (pc *persistConn) roundTrip(req *transportRequest) (resp *Response, err error) {
transport.go#L3156: func (pc *persistConn) markReused() {
transport.go#L3167: func (pc *persistConn) close(err error) {
transport.go#L3173: func (pc *persistConn) closeLocked(err error) {
transport.go#L3453: m map[*persistConn]*list.Element
transport.go#L3457: func (cl *connLRU) add(pc *persistConn) {
transport.go#L3460: cl.m = make(map[*persistConn]*list.Element)
transport.go#L3469: func (cl *connLRU) removeOldest() *persistConn {
transport.go#L3471: pc := ele.Value.(*persistConn)
transport.go#L3478: func (cl *connLRU) remove(pc *persistConn) {